﻿<link href="/Modules/NineSeas.Dashboard/Styles/my-page.css" rel="stylesheet" type="text/css" />
<link href="/Modules/NineSeas.Dashboard/Styles/colorpicker.css" rel="stylesheet" type="text/css" />
<div ng-controller="MyPageController">
    <p>
        <button colorpicker ng-model="currentAccount.BackgroundColor" class="btn btn-primary">Background Color</button>
        <button colorpicker ng-model="currentAccount.BannerColor" class="btn btn-primary">Banner Color</button>
        <button colorpicker ng-model="currentAccount.ForeColor" class="btn btn-primary">Fore Color</button>
    </p>
    <div class="author-details" style="background-color: {{ currentAccount.BackgroundColor }}">
        <div class="author-details-content">
            <div class="profile-container" style=" color: {{ currentAccount.ForeColor }};background-color: {{ currentAccount.BannerColor }};">
                <a href="javascript:;" class="avatar image-container" style="width: 144px;">
                    <img ng-src="{{currentAccount.AvatarUrl}}" alt="{{currentAccount.DisplayName}}" />
                    <div class="image-overlay" style="width: 144px; font-size: 12px;">Click to change</div>
                </a>
                <div class="profile-right">
                    <div class="contact">
                        <i class="icon-envelope"></i> <edit-prompt data-model="currentAccount.Email" data-label="'Enter new Email'"></edit-prompt>
                    </div>
                    <div>
                        <a href="javascript:;" class="like-button">Like</a>
                    </div>
                </div>
                <div class="profile-center">
                    <div class="status-message"><edit-prompt data-model="currentAccount.StatusMessage" data-label="'Enter new Status Message'"></edit-prompt></div>
                    <div class="display-name"><edit-prompt data-model="currentAccount.DisplayName" data-label="'Enter new Display Name'"></edit-prompt></div>
                    <div class="dateofbirth"><a href="javascript:;" datepicker-popup="dd/MMMM/yyyy" ng-model="currentAccount.DateOfBirth" min="'1970-01-01'">{{currentAccount.DateOfBirth | date: 'dd/MM/yyyy'}} <i class="glyphicon glyphicon-edit"></i></a></div>
                    <div class="book-count">{{currentAccount.BookCount}} books</div>
                    <div class="like-count">{{currentAccount.TotalLikes}} likes</div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div ng-repeat="t in [0, 1, 2, 3, 4, 5, 6, 7]" class="book-item {{t % 2 == 0 ? 'book-item-even' : ''}}">
                <a href="javascript:;" class="book-link-view">
                    <img src="/Modules/NineSeas/Images/placeholder-book.png" alt="book name">
                </a>
                <a href="javascript:;" class="book-link-view">
                    <div class="book-item-content">
                        <div class="book-name">Book {{t + 1}}</div>
                        <div class="book-introduction">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
                        </div>
                    </div>
                </a>
                <div class="book-item-footer">
                    <div class="book-item-footer-left">
                        <i class="icon-likes"></i> <span class="book-item-likes">10</span>
                        <i class="icon-views"></i> <span class="book-item-views">20</span>
                    </div>
                    <div class="book-item-footer-right">
                        <span class="book-share-button" ng-click="shareButtonClicked(t)">
                            Share
                        </span>
                        <span class="book-created-date">{{today |date:'dd/MM/yyyy'}}</span>
                    </div>
                    <div style="clear: both;"></div>
                </div>
            </div>

            <div class="clearfix"></div>
        </div>
    </div>
</div>